
class Animal{

    String name;
    


}






public class Cat {

    String type="猫咪";
    public void eat(){
        System.out.println(type+"吃猫粮");

    }


    public void eat(int n){

        System.out.println(type+"吃"+n+"两猫粮");

    }

}

class Test{
    public static void main(String[] args) {
        Cat cat=new Cat();
        cat.eat();
        cat.eat(1);

    }


}
